﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WapCrawlerCore.WapCrawler;

namespace WapCrawlerCore
{
    public static class GeneralWap
    {
        public static WapSiteBase InitWapSite(int wapCrawlerId)
        {
            WapSiteBase wap = null;
            switch ((EnumWapSite)wapCrawlerId)
            {
                case EnumWapSite.Alomob:
                    //wap = new AlomobWapSite(wapCrawlerId);
                    break;
                case EnumWapSite.Waptaigame:
                    //wap = new WapTaiGameWapSite(wapCrawlerId);
                    break;
                case EnumWapSite.Waptai:
                    wap = new WapTaiWapSite(wapCrawlerId);
                    break;
                case EnumWapSite.Xemwap:
                    wap = new WapTaiWapSite(wapCrawlerId);
                    break;
                case EnumWapSite.Gameviethoa:
                    wap = new WapTaiWapSite(wapCrawlerId);
                    break;
                default: //wapCrawlerId = 4
                    wap = new GauPandaWapsite(wapCrawlerId);
                    break;
            }
            return wap;
        }
    }
}
